package com.gzs.learn.payment.pay.notify;

import com.gzs.learn.payment.pay.notify.event.OrderNotifyEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author zhisong.guan
 * @date 2022/10/6 19:15
 */

@Slf4j
@Component
public class NotifyEventListener {

    @EventListener
    public void notifyOrder(OrderNotifyEvent event) {
        // 通知订单
        log.info("notify order:{}", event);
    }
}
